import 'package:flutter/material.dart';

/// 带描边的文本组件
class NttStrokeText extends Text {
  /// 内部样式
  final TextStyle? iStyle;

  /// 描边颜色
  final Color? strokeColor;

  /// 模糊颜色
  final Color? diffuseColor;

  @override
  TextStyle? get style => iStyle ?? TextStyle(
      fontSize: 20,
      color: Colors.white,
      shadows: [
        Shadow(
          color: strokeColor ?? Colors.black,
          offset: const Offset(0, 0),
          blurRadius: 4,
        ),
        Shadow(
          color: diffuseColor ?? Colors.black54,
          offset: const Offset(0, 0),
          blurRadius: 8,
        ),
      ],
  );

  const NttStrokeText(super.data, {super.key, this.iStyle, this.strokeColor, this.diffuseColor});


}
